package com.liveHere.www.dao;

import com.liveHere.www.po.Room;

import java.sql.SQLException;
import java.util.ArrayList;

/**
 * @author Mo312
 */
public interface RoomDao {
    //获取所有房间信息
    public abstract ArrayList<Room> getAllRooms(int shopId) throws Exception;

    //更新房间剩余数量
    public abstract boolean updateRoomRemaining(int roomId, int remaining) throws SQLException;

    //根据店铺ID获取房间列表
    public abstract ArrayList<Room> getRoomsByShopId(int shopId) throws Exception;

    //根据店铺ID获取房间列表
    public abstract Room getRoomById(int roomId) throws SQLException;

    //新增房间
    public abstract boolean addRoom(Room room) throws Exception;

    //删除房间
    public abstract boolean deleteRoom(int roomId) throws Exception;

    //更新房间信息
    public abstract boolean updateRoom(Room room) throws Exception;
}
